package com.cloud.login.service;

import com.cloud.common.domain.Result;
import com.cloud.entity.AuthBody;
import com.cloud.entity.LoginBody;
import com.cloud.entity.SysLoginLogs;

/**
 * 账户登录模块
 *
 * @author yzj
 */
public interface ILoginService {

    /**
     * PC端账户登录验证
     */
    public Result userLogin(LoginBody loginBody, SysLoginLogs loginLogs);

    /**
     * 移动端账户登录验证
     */
    public Result mobileUserLogin(LoginBody loginBody, SysLoginLogs loginLogs);

    /**
     * 根据授权ID获取用户信息
     */
    public Result authLogin(AuthBody authBody, SysLoginLogs loginLogs);

    /**
     * 设置用户/关联项目权限Token信息
     */
    public Result setLoginPointToken(String sysCode);

    /**
     * 根据授权Code获取Token信息
     */
    public Result getAuthPointToken(String openId);

}
